package nc.itf.hrhi.util;

import com.alibaba.fastjson.JSONArray;

public class JsonUtil {

	public static String[] jsonArr2strArr(JSONArray arr) {
		if(arr != null) {
			int len = arr.size();
			if(len > 0) {
				String[] values = new String[len];
				for(int i = 0; i < len; i ++) {
					values[i] = arr.getString(i);
				}
				
				return values;
			}
		}
		
		return null;
	}
}
